/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.prabhu.jeazyprops.bean;

import javax.swing.JComponent;

/**
 * The Basic Entity For Storing Key and value pair as Properties
 *
 * @author Prabhu Prabhakaran
 */
public class KeyValue {

    public String key;
    public String displayName;
    public boolean isEncrypted;
    public JComponent lComponent;

    /**
     * Initializes a new Object with default string and no encryption
     *
     * @param pKey Property Key
     * @param pValue Property value
     */
    public KeyValue(String pKey, String pValue) {
        key = pKey;
        displayName = pValue;
        isEncrypted = false;
        lComponent = null;
    }

    /**
     * Initializes a new Object with default string
     *
     * @param pKey Property Key
     * @param pValue Property Value
     * @param pEncrypted is the Value Encrypted
     */
    public KeyValue(String pKey, String pValue, boolean pEncrypted) {
        key = pKey;
        displayName = pValue;
        isEncrypted = pEncrypted;
        lComponent = null;
    }
}
